/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_dataobjectDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final IntegerExpression modulTypeId;
    public final StringExpression name;

    public T_test_dataobjectDetachedCriteria() {
	super(org.testis.orm.classes.T_test_dataobject.class,
		org.testis.orm.classes.T_test_dataobjectCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	modulTypeId = new IntegerExpression("modulTypeId",
		this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_test_dataobjectDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_test_dataobjectCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	modulTypeId = new IntegerExpression("modulTypeId",
		this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_test_dataobjectpairsDetachedCriteria createT_test_dataobjectpairsCriteria() {
	return new T_test_dataobjectpairsDetachedCriteria(
		createCriteria("ORM_T_test_dataobjectpairs"));
    }

    public T_test_labelpairsDetachedCriteria createT_test_labelpairsCriteria() {
	return new T_test_labelpairsDetachedCriteria(
		createCriteria("ORM_T_test_labelpairs"));
    }

    public T_testpart_conditionDetachedCriteria createT_testpart_conditionCriteria() {
	return new T_testpart_conditionDetachedCriteria(
		createCriteria("ORM_T_testpart_condition"));
    }

    public T_test_dataobject uniqueT_test_dataobject(PersistentSession session) {
	return (T_test_dataobject) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_dataobject[] listT_test_dataobject(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_dataobject[]) list.toArray(new T_test_dataobject[list
		.size()]);
    }
}
